// WARNING: This file has been generated. Any manual changes must be made within preserved regions or they will be lost.

//===============================================================================
//
// AgileTypeTests
//
// PURPOSE: 
// Tests the functionality of AgileType.
//
// NOTES: 
// 
//
//===============================================================================
//
// Copyright (C) 2003 Wallis Software Solutions
// All rights reserved.
//
// THIS CODE AND INFORMATION IS PROVIDED 'AS IS' WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
// FITNESS FOR A PARTICULAR PURPOSE.
//
//===============================================================================

using System;
using Agile.Common.Testing;
using NUnit.Framework;

namespace Agile.Common.Reflections.Tests
{
    /// <summary>
    /// Tests the functionality of AgileType.
    /// </summary>
    [TestFixture]
    public class AgileTypeTests
    {
        #region Type Tests()

        /// <summary>
        /// Checks...
        /// </summary>
        [Test]
        public void TypeTests()
        {
            Type type = Type.GetType("Agile.Common.Testing.Widget, Agile.Common");

            object instance = type.GetMethod("Build", new Type[] {typeof(string)}).Invoke(null, new object[] { "dsf" });
//            type.GetMethod
//            object instance = Activator.CreateInstance("Agile.Common", "Agile.Common.Testing.Widget");
            
            Assert.IsNotNull(instance);
            Assert.AreEqual(typeof(Widget), instance.GetType());
        }

        #endregion
        
    }
}